<a class="button" href="<?php echo url_for(array('table'=>sfContext::getInstance()->getRequest()->getParameter('table'),'action'=> 'new')) ?>">
  <?php echo __('New') ?>
</a>
<?php include_partial('field/pagination', array('pager'=> $pager)) ?>
<?php include_partial('field/table', array('rows'=> $rows, 'headers'=>$headers)) ?>
<?php include_partial('field/pagination', array('pager'=> $pager)) ?>
<script type="text/javascript">
    $(".button").button();
</script>